home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
news
/
inn1.000
/
inn1.4sec-linux-src.tar
/
inn
/
samples
/
ihave
< prev
next >
Wrap
Text File
|
1993-12-22
|
698b
|
32 lines
#! /bin/sh
## $Revision: 1.5 $
## Ihave control-message handler
PROG=ihave
## Some shells don't pass in $* unless we explicitly pass it in here.
## =()<. @<_PATH_PARSECTL>@ "$@">()=
. /news/bin/control/parsecontrol "$@"
case ${ACTION} in
mail)
sed -e 's/^~/~~/' <${ARTICLE} \
| ${MAILCMD} -s "ihave by ${FROM}" ${NEWSMASTER}
;;
doit)
## Scan the message body for articles we don't have.
${SED} -e '1,/^$/d' <${ARTICLE} | grephistory -i >${TEMP}
if [ -s ${TEMP} ] ; then
export PATHHOST TEMP
(
echo Newsgroups: to.${PATHHOST}
echo Control: sendme `innconfval pathhost`
echo ''
cat ${TEMP}
) | ${INEWS} -h
fi
rm -f ${TEMP}
;;
esac
exit